﻿using System.Web.Mvc;
using Blog.Infrastructure.DataAcces.Services.Abstractisations;

namespace Blog.Presentation.Controllers
{
    public class FeedsController : Controller
    {
        protected IArticleService ArticleService;

        public FeedsController(IArticleService ArticleService)
        {
            this.ArticleService = ArticleService;
        }

        public ActionResult Rss()
        {
            HttpContext.Response.ContentType = "application/rss+xml";
            return View(ArticleService.GetAll());
        }

    }
}
